package com.hx.setting.entity;

import com.hx.setting.entity.Entity;
import java.io.Serializable;
import java.util.Date;
import org.json.JSONObject;

/**
 * Generate Date : 2014-03-16
 * Generate Version : v3.0
 * Generate Name : Honey v3.1 Test
 * Generate User : THINK
 * JDK Version : 1.5
 */
public class UsersEntity extends AbstractEntity implements Serializable, Entity
{

	/** 类序列化版本标识 */
	private static final long	serialVersionUID	= 8280368775253822634L;

	/** 主键 */
	private Long				id;

	/** userName */
	private String				userName;

	/** userPassword */
	private String				userPassword;

	/** firstName */
	private String				firstName;

	/** lastName */
	private String				lastName;

	/** reportsToId */
	private String				reportsToId;

	/** isAdmin */
	private String				isAdmin;

	/** dateEntered */
	private Date				dateEntered;

	/** dateModified */
	private Date				dateModified;

	/** modifiedUserId */
	private String				modifiedUserId;

	/** position */
	private String				position;

	/** department */
	private String				department;

	/** phoneHome */
	private String				phoneHome;

	/** phoneMobile */
	private String				phoneMobile;

	/** phoneWork */
	private String				phoneWork;

	/** phoneOther */
	private String				phoneOther;

	/** phoneFax */
	private String				phoneFax;

	/** email1 */
	private String				email1;

	/** email2 */
	private String				email2;

	/** status */
	private String				status;

	/** addressStreet */
	private String				addressStreet;

	/** addressCity */
	private String				addressCity;

	/** addressState */
	private String				addressState;

	/** addressCountry */
	private String				addressCountry;

	/** addressPostalcode */
	private String				addressPostalcode;

	/** weekstart */
	private Integer				weekstart;

	/** dateFormat */
	private String				dateFormat;

	/** hourFormat */
	private String				hourFormat;

	/** startHour */
	private String				startHour;

	/** endHour */
	private String				endHour;

	/** This view, Today, this month, this year */
	private String				activityView;

	/** Today, Last 2 days, Last week, leads infomation item shows. */
	private String				leadView;

	/** imagename */
	private String				imagename;

	/** deleted */
	private Integer				deleted;

	/** confirmPassword */
	private String				confirmPassword;

	/** internalMailer */
	private String				internalMailer;

	/** 提醒间隔 */
	private String				reminderInterval;

	/** 下次提醒时间 */
	private String				reminderNextTime;

	/** cryptType */
	private String				cryptType;

	/** accesskey */
	private String				accesskey;

	/** theme */
	private String				theme;

	/** language */
	private String				language;

	/** timeZone */
	private String				timeZone;

	/** currencyGroupingPattern */
	private String				currencyGroupingPattern;

	/** currencyDecimalSeparator */
	private String				currencyDecimalSeparator;

	/** currencyGroupingSeparator */
	private String				currencyGroupingSeparator;

	/** currencySymbolPlacement */
	private String				currencySymbolPlacement;

	/** noOfCurrencyDecimals */
	private String				noOfCurrencyDecimals;

	/** 
	 * 默认构造函数
	 */
	public UsersEntity()
	{
		super();
	}

	/** 
	 * 带参数构造函数
	 */
	public UsersEntity(Long id/*主键 */, String userName/*userName*/, String userPassword/*userPassword*/, String firstName/*firstName */, String lastName/*lastName */,
			String reportsToId/*reportsToId */, String isAdmin/*isAdmin */, Date dateEntered/*dateEntered */, Date dateModified/*dateModified */,
			String modifiedUserId/*modifiedUserId */, String position/*position */, String department/*department */, String phoneHome/*phoneHome */,
			String phoneMobile/*phoneMobile */, String phoneWork/*phoneWork */, String phoneOther/*phoneOther */, String phoneFax/*phoneFax */, String email1/*email1 */,
			String email2/*email2 */, String status/*status */, String addressStreet/*addressStreet */, String addressCity/*addressCity */,
			String addressState/*addressState */, String addressCountry/*addressCountry */, String addressPostalcode/*addressPostalcode */, Integer weekstart/*weekstart */,
			String dateFormat/*dateFormat */, String hourFormat/*hourFormat */, String startHour/*startHour */, String endHour/*endHour */,
			String activityView/*This view, Today, this month, this year */, String leadView/*Today, Last 2 days, Last week, leads infomation item shows. */,
			String imagename/*imagename */, Integer deleted/*deleted */, String confirmPassword/*confirmPassword*/, String internalMailer/*internalMailer */,
			String reminderInterval/*提醒间隔 */, String reminderNextTime/*下次提醒时间 */, String cryptType/*cryptType */, String accesskey/*accesskey */, String theme/*theme */,
			String language/*language */, String timeZone/*timeZone */, String currencyGroupingPattern/*currencyGroupingPattern */,
			String currencyDecimalSeparator/*currencyDecimalSeparator */, String currencyGroupingSeparator/*currencyGroupingSeparator */,
			String currencySymbolPlacement/*currencySymbolPlacement */, String noOfCurrencyDecimals/*noOfCurrencyDecimals */)
	{
		this.setId( id );//主键 
		this.setUserName( userName );//userName
		this.setUserPassword( userPassword );//userPassword
		this.setFirstName( firstName );//firstName 
		this.setLastName( lastName );//lastName 
		this.setReportsToId( reportsToId );//reportsToId 
		this.setIsAdmin( isAdmin );//isAdmin 
		this.setDateEntered( dateEntered );//dateEntered 
		this.setDateModified( dateModified );//dateModified 
		this.setModifiedUserId( modifiedUserId );//modifiedUserId 
		this.setPosition( position );//position 
		this.setDepartment( department );//department 
		this.setPhoneHome( phoneHome );//phoneHome 
		this.setPhoneMobile( phoneMobile );//phoneMobile 
		this.setPhoneWork( phoneWork );//phoneWork 
		this.setPhoneOther( phoneOther );//phoneOther 
		this.setPhoneFax( phoneFax );//phoneFax 
		this.setEmail1( email1 );//email1 
		this.setEmail2( email2 );//email2 
		this.setStatus( status );//status 
		this.setAddressStreet( addressStreet );//addressStreet 
		this.setAddressCity( addressCity );//addressCity 
		this.setAddressState( addressState );//addressState 
		this.setAddressCountry( addressCountry );//addressCountry 
		this.setAddressPostalcode( addressPostalcode );//addressPostalcode 
		this.setWeekstart( weekstart );//weekstart 
		this.setDateFormat( dateFormat );//dateFormat 
		this.setHourFormat( hourFormat );//hourFormat 
		this.setStartHour( startHour );//startHour 
		this.setEndHour( endHour );//endHour 
		this.setActivityView( activityView );//This view, Today, this month, this year 
		this.setLeadView( leadView );//Today, Last 2 days, Last week, leads infomation item shows. 
		this.setImagename( imagename );//imagename 
		this.setDeleted( deleted );//deleted 
		this.setConfirmPassword( confirmPassword );//confirmPassword
		this.setInternalMailer( internalMailer );//internalMailer 
		this.setReminderInterval( reminderInterval );//提醒间隔 
		this.setReminderNextTime( reminderNextTime );//下次提醒时间 
		this.setCryptType( cryptType );//cryptType 
		this.setAccesskey( accesskey );//accesskey 
		this.setTheme( theme );//theme 
		this.setLanguage( language );//language 
		this.setTimeZone( timeZone );//timeZone 
		this.setCurrencyGroupingPattern( currencyGroupingPattern );//currencyGroupingPattern 
		this.setCurrencyDecimalSeparator( currencyDecimalSeparator );//currencyDecimalSeparator 
		this.setCurrencyGroupingSeparator( currencyGroupingSeparator );//currencyGroupingSeparator 
		this.setCurrencySymbolPlacement( currencySymbolPlacement );//currencySymbolPlacement 
		this.setNoOfCurrencyDecimals( noOfCurrencyDecimals );//noOfCurrencyDecimals
	}

	/** 
	 * 获取主键
	 * @return 主键
	 */
	@Override
	public final Long getId()
	{
		return this.id;
	}

	/** 
	 * 设定主键
	 * @param id
	 * @return 返回自身
	 */
	public final UsersEntity setId(Long id)
	{
		this.id = id;
		return this;
	}

	/** 
	 * 获取userName
	 * @return userName
	 */
	public final String getUserName()
	{
		return this.userName;
	}

	/** 
	 * 设定userName
	 * @param userName
	 * @return 返回自身
	 */
	public final UsersEntity setUserName(String userName)
	{
		this.userName = userName;
		if ( this.userName != null && this.userName.length() == 0 ) this.userName = null;
		return this;
	}

	/** 
	 * 获取userPassword
	 * @return userPassword
	 */
	public final String getUserPassword()
	{
		return this.userPassword;
	}

	/** 
	 * 设定userPassword
	 * @param userPassword
	 * @return 返回自身
	 */
	public final UsersEntity setUserPassword(String userPassword)
	{
		this.userPassword = userPassword;
		if ( this.userPassword != null && this.userPassword.length() == 0 ) this.userPassword = null;
		return this;
	}

	/** 
	 * 获取firstName
	 * @return firstName
	 */
	public final String getFirstName()
	{
		return this.firstName;
	}

	/** 
	 * 设定firstName
	 * @param firstName
	 * @return 返回自身
	 */
	public final UsersEntity setFirstName(String firstName)
	{
		this.firstName = firstName;
		if ( this.firstName != null && this.firstName.length() == 0 ) this.firstName = null;
		return this;
	}

	/** 
	 * 获取lastName
	 * @return lastName
	 */
	public final String getLastName()
	{
		return this.lastName;
	}

	/** 
	 * 设定lastName
	 * @param lastName
	 * @return 返回自身
	 */
	public final UsersEntity setLastName(String lastName)
	{
		this.lastName = lastName;
		if ( this.lastName != null && this.lastName.length() == 0 ) this.lastName = null;
		return this;
	}

	/** 
	 * 获取reportsToId
	 * @return reportsToId
	 */
	public final String getReportsToId()
	{
		return this.reportsToId;
	}

	/** 
	 * 设定reportsToId
	 * @param reportsToId
	 * @return 返回自身
	 */
	public final UsersEntity setReportsToId(String reportsToId)
	{
		this.reportsToId = reportsToId;
		if ( this.reportsToId != null && this.reportsToId.length() == 0 ) this.reportsToId = null;
		return this;
	}

	/** 
	 * 获取isAdmin
	 * @return isAdmin
	 */
	public final String getIsAdmin()
	{
		return this.isAdmin;
	}

	/** 
	 * 设定isAdmin
	 * @param isAdmin
	 * @return 返回自身
	 */
	public final UsersEntity setIsAdmin(String isAdmin)
	{
		this.isAdmin = isAdmin;
		if ( this.isAdmin != null && this.isAdmin.length() == 0 ) this.isAdmin = null;
		return this;
	}

	/** 
	 * 获取dateEntered
	 * @return dateEntered
	 */
	public final Date getDateEntered()
	{
		return this.dateEntered;
	}

	/** 
	 * 设定dateEntered
	 * @param dateEntered
	 * @return 返回自身
	 */
	public final UsersEntity setDateEntered(Date dateEntered)
	{
		this.dateEntered = dateEntered;
		return this;
	}

	/** 
	 * 获取dateModified
	 * @return dateModified
	 */
	public final Date getDateModified()
	{
		return this.dateModified;
	}

	/** 
	 * 设定dateModified
	 * @param dateModified
	 * @return 返回自身
	 */
	public final UsersEntity setDateModified(Date dateModified)
	{
		this.dateModified = dateModified;
		return this;
	}

	/** 
	 * 获取modifiedUserId
	 * @return modifiedUserId
	 */
	public final String getModifiedUserId()
	{
		return this.modifiedUserId;
	}

	/** 
	 * 设定modifiedUserId
	 * @param modifiedUserId
	 * @return 返回自身
	 */
	public final UsersEntity setModifiedUserId(String modifiedUserId)
	{
		this.modifiedUserId = modifiedUserId;
		if ( this.modifiedUserId != null && this.modifiedUserId.length() == 0 ) this.modifiedUserId = null;
		return this;
	}

	/** 
	 * 获取position
	 * @return position
	 */
	public final String getPosition()
	{
		return this.position;
	}

	/** 
	 * 设定position
	 * @param position
	 * @return 返回自身
	 */
	public final UsersEntity setPosition(String position)
	{
		this.position = position;
		if ( this.position != null && this.position.length() == 0 ) this.position = null;
		return this;
	}

	/** 
	 * 获取department
	 * @return department
	 */
	public final String getDepartment()
	{
		return this.department;
	}

	/** 
	 * 设定department
	 * @param department
	 * @return 返回自身
	 */
	public final UsersEntity setDepartment(String department)
	{
		this.department = department;
		if ( this.department != null && this.department.length() == 0 ) this.department = null;
		return this;
	}

	/** 
	 * 获取phoneHome
	 * @return phoneHome
	 */
	public final String getPhoneHome()
	{
		return this.phoneHome;
	}

	/** 
	 * 设定phoneHome
	 * @param phoneHome
	 * @return 返回自身
	 */
	public final UsersEntity setPhoneHome(String phoneHome)
	{
		this.phoneHome = phoneHome;
		if ( this.phoneHome != null && this.phoneHome.length() == 0 ) this.phoneHome = null;
		return this;
	}

	/** 
	 * 获取phoneMobile
	 * @return phoneMobile
	 */
	public final String getPhoneMobile()
	{
		return this.phoneMobile;
	}

	/** 
	 * 设定phoneMobile
	 * @param phoneMobile
	 * @return 返回自身
	 */
	public final UsersEntity setPhoneMobile(String phoneMobile)
	{
		this.phoneMobile = phoneMobile;
		if ( this.phoneMobile != null && this.phoneMobile.length() == 0 ) this.phoneMobile = null;
		return this;
	}

	/** 
	 * 获取phoneWork
	 * @return phoneWork
	 */
	public final String getPhoneWork()
	{
		return this.phoneWork;
	}

	/** 
	 * 设定phoneWork
	 * @param phoneWork
	 * @return 返回自身
	 */
	public final UsersEntity setPhoneWork(String phoneWork)
	{
		this.phoneWork = phoneWork;
		if ( this.phoneWork != null && this.phoneWork.length() == 0 ) this.phoneWork = null;
		return this;
	}

	/** 
	 * 获取phoneOther
	 * @return phoneOther
	 */
	public final String getPhoneOther()
	{
		return this.phoneOther;
	}

	/** 
	 * 设定phoneOther
	 * @param phoneOther
	 * @return 返回自身
	 */
	public final UsersEntity setPhoneOther(String phoneOther)
	{
		this.phoneOther = phoneOther;
		if ( this.phoneOther != null && this.phoneOther.length() == 0 ) this.phoneOther = null;
		return this;
	}

	/** 
	 * 获取phoneFax
	 * @return phoneFax
	 */
	public final String getPhoneFax()
	{
		return this.phoneFax;
	}

	/** 
	 * 设定phoneFax
	 * @param phoneFax
	 * @return 返回自身
	 */
	public final UsersEntity setPhoneFax(String phoneFax)
	{
		this.phoneFax = phoneFax;
		if ( this.phoneFax != null && this.phoneFax.length() == 0 ) this.phoneFax = null;
		return this;
	}

	/** 
	 * 获取email1
	 * @return email1
	 */
	public final String getEmail1()
	{
		return this.email1;
	}

	/** 
	 * 设定email1
	 * @param email1
	 * @return 返回自身
	 */
	public final UsersEntity setEmail1(String email1)
	{
		this.email1 = email1;
		if ( this.email1 != null && this.email1.length() == 0 ) this.email1 = null;
		return this;
	}

	/** 
	 * 获取email2
	 * @return email2
	 */
	public final String getEmail2()
	{
		return this.email2;
	}

	/** 
	 * 设定email2
	 * @param email2
	 * @return 返回自身
	 */
	public final UsersEntity setEmail2(String email2)
	{
		this.email2 = email2;
		if ( this.email2 != null && this.email2.length() == 0 ) this.email2 = null;
		return this;
	}

	/** 
	 * 获取status
	 * @return status
	 */
	public final String getStatus()
	{
		return this.status;
	}

	/** 
	 * 设定status
	 * @param status
	 * @return 返回自身
	 */
	public final UsersEntity setStatus(String status)
	{
		this.status = status;
		if ( this.status != null && this.status.length() == 0 ) this.status = null;
		return this;
	}

	/** 
	 * 获取addressStreet
	 * @return addressStreet
	 */
	public final String getAddressStreet()
	{
		return this.addressStreet;
	}

	/** 
	 * 设定addressStreet
	 * @param addressStreet
	 * @return 返回自身
	 */
	public final UsersEntity setAddressStreet(String addressStreet)
	{
		this.addressStreet = addressStreet;
		if ( this.addressStreet != null && this.addressStreet.length() == 0 ) this.addressStreet = null;
		return this;
	}

	/** 
	 * 获取addressCity
	 * @return addressCity
	 */
	public final String getAddressCity()
	{
		return this.addressCity;
	}

	/** 
	 * 设定addressCity
	 * @param addressCity
	 * @return 返回自身
	 */
	public final UsersEntity setAddressCity(String addressCity)
	{
		this.addressCity = addressCity;
		if ( this.addressCity != null && this.addressCity.length() == 0 ) this.addressCity = null;
		return this;
	}

	/** 
	 * 获取addressState
	 * @return addressState
	 */
	public final String getAddressState()
	{
		return this.addressState;
	}

	/** 
	 * 设定addressState
	 * @param addressState
	 * @return 返回自身
	 */
	public final UsersEntity setAddressState(String addressState)
	{
		this.addressState = addressState;
		if ( this.addressState != null && this.addressState.length() == 0 ) this.addressState = null;
		return this;
	}

	/** 
	 * 获取addressCountry
	 * @return addressCountry
	 */
	public final String getAddressCountry()
	{
		return this.addressCountry;
	}

	/** 
	 * 设定addressCountry
	 * @param addressCountry
	 * @return 返回自身
	 */
	public final UsersEntity setAddressCountry(String addressCountry)
	{
		this.addressCountry = addressCountry;
		if ( this.addressCountry != null && this.addressCountry.length() == 0 ) this.addressCountry = null;
		return this;
	}

	/** 
	 * 获取addressPostalcode
	 * @return addressPostalcode
	 */
	public final String getAddressPostalcode()
	{
		return this.addressPostalcode;
	}

	/** 
	 * 设定addressPostalcode
	 * @param addressPostalcode
	 * @return 返回自身
	 */
	public final UsersEntity setAddressPostalcode(String addressPostalcode)
	{
		this.addressPostalcode = addressPostalcode;
		if ( this.addressPostalcode != null && this.addressPostalcode.length() == 0 ) this.addressPostalcode = null;
		return this;
	}

	/** 
	 * 获取weekstart
	 * @return weekstart
	 */
	public final Integer getWeekstart()
	{
		return this.weekstart;
	}

	/** 
	 * 设定weekstart
	 * @param weekstart
	 * @return 返回自身
	 */
	public final UsersEntity setWeekstart(Integer weekstart)
	{
		this.weekstart = weekstart;
		return this;
	}

	/** 
	 * 获取dateFormat
	 * @return dateFormat
	 */
	public final String getDateFormat()
	{
		return this.dateFormat;
	}

	/** 
	 * 设定dateFormat
	 * @param dateFormat
	 * @return 返回自身
	 */
	public final UsersEntity setDateFormat(String dateFormat)
	{
		this.dateFormat = dateFormat;
		if ( this.dateFormat != null && this.dateFormat.length() == 0 ) this.dateFormat = null;
		return this;
	}

	/** 
	 * 获取hourFormat
	 * @return hourFormat
	 */
	public final String getHourFormat()
	{
		return this.hourFormat;
	}

	/** 
	 * 设定hourFormat
	 * @param hourFormat
	 * @return 返回自身
	 */
	public final UsersEntity setHourFormat(String hourFormat)
	{
		this.hourFormat = hourFormat;
		if ( this.hourFormat != null && this.hourFormat.length() == 0 ) this.hourFormat = null;
		return this;
	}

	/** 
	 * 获取startHour
	 * @return startHour
	 */
	public final String getStartHour()
	{
		return this.startHour;
	}

	/** 
	 * 设定startHour
	 * @param startHour
	 * @return 返回自身
	 */
	public final UsersEntity setStartHour(String startHour)
	{
		this.startHour = startHour;
		if ( this.startHour != null && this.startHour.length() == 0 ) this.startHour = null;
		return this;
	}

	/** 
	 * 获取endHour
	 * @return endHour
	 */
	public final String getEndHour()
	{
		return this.endHour;
	}

	/** 
	 * 设定endHour
	 * @param endHour
	 * @return 返回自身
	 */
	public final UsersEntity setEndHour(String endHour)
	{
		this.endHour = endHour;
		if ( this.endHour != null && this.endHour.length() == 0 ) this.endHour = null;
		return this;
	}

	/** 
	 * 获取This view, Today, this month, this year
	 * @return This view, Today, this month, this year
	 */
	public final String getActivityView()
	{
		return this.activityView;
	}

	/** 
	 * 设定This view, Today, this month, this year
	 * @param activityView
	 * @return 返回自身
	 */
	public final UsersEntity setActivityView(String activityView)
	{
		this.activityView = activityView;
		if ( this.activityView != null && this.activityView.length() == 0 ) this.activityView = null;
		return this;
	}

	/** 
	 * 获取Today, Last 2 days, Last week, leads infomation item shows.
	 * @return Today, Last 2 days, Last week, leads infomation item shows.
	 */
	public final String getLeadView()
	{
		return this.leadView;
	}

	/** 
	 * 设定Today, Last 2 days, Last week, leads infomation item shows.
	 * @param leadView
	 * @return 返回自身
	 */
	public final UsersEntity setLeadView(String leadView)
	{
		this.leadView = leadView;
		if ( this.leadView != null && this.leadView.length() == 0 ) this.leadView = null;
		return this;
	}

	/** 
	 * 获取imagename
	 * @return imagename
	 */
	public final String getImagename()
	{
		return this.imagename;
	}

	/** 
	 * 设定imagename
	 * @param imagename
	 * @return 返回自身
	 */
	public final UsersEntity setImagename(String imagename)
	{
		this.imagename = imagename;
		if ( this.imagename != null && this.imagename.length() == 0 ) this.imagename = null;
		return this;
	}

	/** 
	 * 获取deleted
	 * @return deleted
	 */
	public final Integer getDeleted()
	{
		return this.deleted;
	}

	/** 
	 * 设定deleted
	 * @param deleted
	 * @return 返回自身
	 */
	public final UsersEntity setDeleted(Integer deleted)
	{
		this.deleted = deleted;
		return this;
	}

	/** 
	 * 获取confirmPassword
	 * @return confirmPassword
	 */
	public final String getConfirmPassword()
	{
		return this.confirmPassword;
	}

	/** 
	 * 设定confirmPassword
	 * @param confirmPassword
	 * @return 返回自身
	 */
	public final UsersEntity setConfirmPassword(String confirmPassword)
	{
		this.confirmPassword = confirmPassword;
		if ( this.confirmPassword != null && this.confirmPassword.length() == 0 ) this.confirmPassword = null;
		return this;
	}

	/** 
	 * 获取internalMailer
	 * @return internalMailer
	 */
	public final String getInternalMailer()
	{
		return this.internalMailer;
	}

	/** 
	 * 设定internalMailer
	 * @param internalMailer
	 * @return 返回自身
	 */
	public final UsersEntity setInternalMailer(String internalMailer)
	{
		this.internalMailer = internalMailer;
		if ( this.internalMailer != null && this.internalMailer.length() == 0 ) this.internalMailer = null;
		return this;
	}

	/** 
	 * 获取提醒间隔
	 * @return 提醒间隔
	 */
	public final String getReminderInterval()
	{
		return this.reminderInterval;
	}

	/** 
	 * 设定提醒间隔
	 * @param reminderInterval
	 * @return 返回自身
	 */
	public final UsersEntity setReminderInterval(String reminderInterval)
	{
		this.reminderInterval = reminderInterval;
		if ( this.reminderInterval != null && this.reminderInterval.length() == 0 ) this.reminderInterval = null;
		return this;
	}

	/** 
	 * 获取下次提醒时间
	 * @return 下次提醒时间
	 */
	public final String getReminderNextTime()
	{
		return this.reminderNextTime;
	}

	/** 
	 * 设定下次提醒时间
	 * @param reminderNextTime
	 * @return 返回自身
	 */
	public final UsersEntity setReminderNextTime(String reminderNextTime)
	{
		this.reminderNextTime = reminderNextTime;
		if ( this.reminderNextTime != null && this.reminderNextTime.length() == 0 ) this.reminderNextTime = null;
		return this;
	}

	/** 
	 * 获取cryptType
	 * @return cryptType
	 */
	public final String getCryptType()
	{
		return this.cryptType;
	}

	/** 
	 * 设定cryptType
	 * @param cryptType
	 * @return 返回自身
	 */
	public final UsersEntity setCryptType(String cryptType)
	{
		this.cryptType = cryptType;
		if ( this.cryptType != null && this.cryptType.length() == 0 ) this.cryptType = null;
		return this;
	}

	/** 
	 * 获取accesskey
	 * @return accesskey
	 */
	public final String getAccesskey()
	{
		return this.accesskey;
	}

	/** 
	 * 设定accesskey
	 * @param accesskey
	 * @return 返回自身
	 */
	public final UsersEntity setAccesskey(String accesskey)
	{
		this.accesskey = accesskey;
		if ( this.accesskey != null && this.accesskey.length() == 0 ) this.accesskey = null;
		return this;
	}

	/** 
	 * 获取theme
	 * @return theme
	 */
	public final String getTheme()
	{
		return this.theme;
	}

	/** 
	 * 设定theme
	 * @param theme
	 * @return 返回自身
	 */
	public final UsersEntity setTheme(String theme)
	{
		this.theme = theme;
		if ( this.theme != null && this.theme.length() == 0 ) this.theme = null;
		return this;
	}

	/** 
	 * 获取language
	 * @return language
	 */
	public final String getLanguage()
	{
		return this.language;
	}

	/** 
	 * 设定language
	 * @param language
	 * @return 返回自身
	 */
	public final UsersEntity setLanguage(String language)
	{
		this.language = language;
		if ( this.language != null && this.language.length() == 0 ) this.language = null;
		return this;
	}

	/** 
	 * 获取timeZone
	 * @return timeZone
	 */
	public final String getTimeZone()
	{
		return this.timeZone;
	}

	/** 
	 * 设定timeZone
	 * @param timeZone
	 * @return 返回自身
	 */
	public final UsersEntity setTimeZone(String timeZone)
	{
		this.timeZone = timeZone;
		if ( this.timeZone != null && this.timeZone.length() == 0 ) this.timeZone = null;
		return this;
	}

	/** 
	 * 获取currencyGroupingPattern
	 * @return currencyGroupingPattern
	 */
	public final String getCurrencyGroupingPattern()
	{
		return this.currencyGroupingPattern;
	}

	/** 
	 * 设定currencyGroupingPattern
	 * @param currencyGroupingPattern
	 * @return 返回自身
	 */
	public final UsersEntity setCurrencyGroupingPattern(String currencyGroupingPattern)
	{
		this.currencyGroupingPattern = currencyGroupingPattern;
		if ( this.currencyGroupingPattern != null && this.currencyGroupingPattern.length() == 0 ) this.currencyGroupingPattern = null;
		return this;
	}

	/** 
	 * 获取currencyDecimalSeparator
	 * @return currencyDecimalSeparator
	 */
	public final String getCurrencyDecimalSeparator()
	{
		return this.currencyDecimalSeparator;
	}

	/** 
	 * 设定currencyDecimalSeparator
	 * @param currencyDecimalSeparator
	 * @return 返回自身
	 */
	public final UsersEntity setCurrencyDecimalSeparator(String currencyDecimalSeparator)
	{
		this.currencyDecimalSeparator = currencyDecimalSeparator;
		if ( this.currencyDecimalSeparator != null && this.currencyDecimalSeparator.length() == 0 ) this.currencyDecimalSeparator = null;
		return this;
	}

	/** 
	 * 获取currencyGroupingSeparator
	 * @return currencyGroupingSeparator
	 */
	public final String getCurrencyGroupingSeparator()
	{
		return this.currencyGroupingSeparator;
	}

	/** 
	 * 设定currencyGroupingSeparator
	 * @param currencyGroupingSeparator
	 * @return 返回自身
	 */
	public final UsersEntity setCurrencyGroupingSeparator(String currencyGroupingSeparator)
	{
		this.currencyGroupingSeparator = currencyGroupingSeparator;
		if ( this.currencyGroupingSeparator != null && this.currencyGroupingSeparator.length() == 0 ) this.currencyGroupingSeparator = null;
		return this;
	}

	/** 
	 * 获取currencySymbolPlacement
	 * @return currencySymbolPlacement
	 */
	public final String getCurrencySymbolPlacement()
	{
		return this.currencySymbolPlacement;
	}

	/** 
	 * 设定currencySymbolPlacement
	 * @param currencySymbolPlacement
	 * @return 返回自身
	 */
	public final UsersEntity setCurrencySymbolPlacement(String currencySymbolPlacement)
	{
		this.currencySymbolPlacement = currencySymbolPlacement;
		if ( this.currencySymbolPlacement != null && this.currencySymbolPlacement.length() == 0 ) this.currencySymbolPlacement = null;
		return this;
	}

	/** 
	 * 获取noOfCurrencyDecimals
	 * @return noOfCurrencyDecimals
	 */
	public final String getNoOfCurrencyDecimals()
	{
		return this.noOfCurrencyDecimals;
	}

	/** 
	 * 设定noOfCurrencyDecimals
	 * @param noOfCurrencyDecimals
	 * @return 返回自身
	 */
	public final UsersEntity setNoOfCurrencyDecimals(String noOfCurrencyDecimals)
	{
		this.noOfCurrencyDecimals = noOfCurrencyDecimals;
		if ( this.noOfCurrencyDecimals != null && this.noOfCurrencyDecimals.length() == 0 ) this.noOfCurrencyDecimals = null;
		return this;
	}

	@Override
	public int hashCode()
	{
		int answer = -1;
		String solt = "~x_in";//随机盐
		answer = new StringBuilder()
				.append( "UsersEntity" )
				.append( this.id )
				.append( this.userName )
				.append( this.userPassword )
				.append( this.firstName )
				.append( this.lastName )
				.append( this.reportsToId )
				.append( this.isAdmin )
				.append( this.dateEntered )
				.append( this.dateModified )
				.append( this.modifiedUserId )
				.append( this.position )
				.append( this.department )
				.append( this.phoneHome )
				.append( this.phoneMobile )
				.append( this.phoneWork )
				.append( this.phoneOther )
				.append( this.phoneFax )
				.append( this.email1 )
				.append( this.email2 )
				.append( this.status )
				.append( this.addressStreet )
				.append( this.addressCity )
				.append( this.addressState )
				.append( this.addressCountry )
				.append( this.addressPostalcode )
				.append( this.weekstart )
				.append( this.dateFormat )
				.append( this.hourFormat )
				.append( this.startHour )
				.append( this.endHour )
				.append( this.activityView )
				.append( this.leadView )
				.append( this.imagename )
				.append( this.deleted )
				.append( this.confirmPassword )
				.append( this.internalMailer )
				.append( this.reminderInterval )
				.append( this.reminderNextTime )
				.append( this.cryptType )
				.append( this.accesskey )
				.append( this.theme )
				.append( this.language )
				.append( this.timeZone )
				.append( this.currencyGroupingPattern )
				.append( this.currencyDecimalSeparator )
				.append( this.currencyGroupingSeparator )
				.append( this.currencySymbolPlacement )
				.append( this.noOfCurrencyDecimals )
				.append( solt )
				.toString()
				.hashCode();
		return answer;
	}

	@Override
	public String toString()
	{
		return new StringBuilder()
				.append( "UsersEntity : [" )
				.append( "    id : " )
				.append( this.id )
				.append( "    userName : " )
				.append( this.userName )
				.append( "    userPassword : " )
				.append( this.userPassword )
				.append( "    firstName : " )
				.append( this.firstName )
				.append( "    lastName : " )
				.append( this.lastName )
				.append( "    reportsToId : " )
				.append( this.reportsToId )
				.append( "    isAdmin : " )
				.append( this.isAdmin )
				.append( "    dateEntered : " )
				.append( this.dateEntered )
				.append( "    dateModified : " )
				.append( this.dateModified )
				.append( "    modifiedUserId : " )
				.append( this.modifiedUserId )
				.append( "    position : " )
				.append( this.position )
				.append( "    department : " )
				.append( this.department )
				.append( "    phoneHome : " )
				.append( this.phoneHome )
				.append( "    phoneMobile : " )
				.append( this.phoneMobile )
				.append( "    phoneWork : " )
				.append( this.phoneWork )
				.append( "    phoneOther : " )
				.append( this.phoneOther )
				.append( "    phoneFax : " )
				.append( this.phoneFax )
				.append( "    email1 : " )
				.append( this.email1 )
				.append( "    email2 : " )
				.append( this.email2 )
				.append( "    status : " )
				.append( this.status )
				.append( "    addressStreet : " )
				.append( this.addressStreet )
				.append( "    addressCity : " )
				.append( this.addressCity )
				.append( "    addressState : " )
				.append( this.addressState )
				.append( "    addressCountry : " )
				.append( this.addressCountry )
				.append( "    addressPostalcode : " )
				.append( this.addressPostalcode )
				.append( "    weekstart : " )
				.append( this.weekstart )
				.append( "    dateFormat : " )
				.append( this.dateFormat )
				.append( "    hourFormat : " )
				.append( this.hourFormat )
				.append( "    startHour : " )
				.append( this.startHour )
				.append( "    endHour : " )
				.append( this.endHour )
				.append( "    activityView : " )
				.append( this.activityView )
				.append( "    leadView : " )
				.append( this.leadView )
				.append( "    imagename : " )
				.append( this.imagename )
				.append( "    deleted : " )
				.append( this.deleted )
				.append( "    confirmPassword : " )
				.append( this.confirmPassword )
				.append( "    internalMailer : " )
				.append( this.internalMailer )
				.append( "    reminderInterval : " )
				.append( this.reminderInterval )
				.append( "    reminderNextTime : " )
				.append( this.reminderNextTime )
				.append( "    cryptType : " )
				.append( this.cryptType )
				.append( "    accesskey : " )
				.append( this.accesskey )
				.append( "    theme : " )
				.append( this.theme )
				.append( "    language : " )
				.append( this.language )
				.append( "    timeZone : " )
				.append( this.timeZone )
				.append( "    currencyGroupingPattern : " )
				.append( this.currencyGroupingPattern )
				.append( "    currencyDecimalSeparator : " )
				.append( this.currencyDecimalSeparator )
				.append( "    currencyGroupingSeparator : " )
				.append( this.currencyGroupingSeparator )
				.append( "    currencySymbolPlacement : " )
				.append( this.currencySymbolPlacement )
				.append( "    noOfCurrencyDecimals : " )
				.append( this.noOfCurrencyDecimals )
				.append( "]\n" )
				.toString();
	}

	public JSONObject toJsonObject()
	{
		JSONObject answer = new JSONObject();
		answer.put( "id" ,id == null ? "" : id );
		answer.put( "userName" ,userName == null ? "" : userName );
		answer.put( "userPassword" ,userPassword == null ? "" : userPassword );
		answer.put( "firstName" ,firstName == null ? "" : firstName );
		answer.put( "lastName" ,lastName == null ? "" : lastName );
		answer.put( "reportsToId" ,reportsToId == null ? "" : reportsToId );
		answer.put( "isAdmin" ,isAdmin == null ? "" : isAdmin );
		answer.put( "dateEntered" ,dateEntered == null ? "" : dateEntered.getTime() );
		answer.put( "dateModified" ,dateModified == null ? "" : dateModified.getTime() );
		answer.put( "modifiedUserId" ,modifiedUserId == null ? "" : modifiedUserId );
		answer.put( "position" ,position == null ? "" : position );
		answer.put( "department" ,department == null ? "" : department );
		answer.put( "phoneHome" ,phoneHome == null ? "" : phoneHome );
		answer.put( "phoneMobile" ,phoneMobile == null ? "" : phoneMobile );
		answer.put( "phoneWork" ,phoneWork == null ? "" : phoneWork );
		answer.put( "phoneOther" ,phoneOther == null ? "" : phoneOther );
		answer.put( "phoneFax" ,phoneFax == null ? "" : phoneFax );
		answer.put( "email1" ,email1 == null ? "" : email1 );
		answer.put( "email2" ,email2 == null ? "" : email2 );
		answer.put( "status" ,status == null ? "" : status );
		answer.put( "addressStreet" ,addressStreet == null ? "" : addressStreet );
		answer.put( "addressCity" ,addressCity == null ? "" : addressCity );
		answer.put( "addressState" ,addressState == null ? "" : addressState );
		answer.put( "addressCountry" ,addressCountry == null ? "" : addressCountry );
		answer.put( "addressPostalcode" ,addressPostalcode == null ? "" : addressPostalcode );
		answer.put( "weekstart" ,weekstart == null ? "" : weekstart );
		answer.put( "dateFormat" ,dateFormat == null ? "" : dateFormat );
		answer.put( "hourFormat" ,hourFormat == null ? "" : hourFormat );
		answer.put( "startHour" ,startHour == null ? "" : startHour );
		answer.put( "endHour" ,endHour == null ? "" : endHour );
		answer.put( "activityView" ,activityView == null ? "" : activityView );
		answer.put( "leadView" ,leadView == null ? "" : leadView );
		answer.put( "imagename" ,imagename == null ? "" : imagename );
		answer.put( "deleted" ,deleted == null ? "" : deleted );
		answer.put( "confirmPassword" ,confirmPassword == null ? "" : confirmPassword );
		answer.put( "internalMailer" ,internalMailer == null ? "" : internalMailer );
		answer.put( "reminderInterval" ,reminderInterval == null ? "" : reminderInterval );
		answer.put( "reminderNextTime" ,reminderNextTime == null ? "" : reminderNextTime );
		answer.put( "cryptType" ,cryptType == null ? "" : cryptType );
		answer.put( "accesskey" ,accesskey == null ? "" : accesskey );
		answer.put( "theme" ,theme == null ? "" : theme );
		answer.put( "language" ,language == null ? "" : language );
		answer.put( "timeZone" ,timeZone == null ? "" : timeZone );
		answer.put( "currencyGroupingPattern" ,currencyGroupingPattern == null ? "" : currencyGroupingPattern );
		answer.put( "currencyDecimalSeparator" ,currencyDecimalSeparator == null ? "" : currencyDecimalSeparator );
		answer.put( "currencyGroupingSeparator" ,currencyGroupingSeparator == null ? "" : currencyGroupingSeparator );
		answer.put( "currencySymbolPlacement" ,currencySymbolPlacement == null ? "" : currencySymbolPlacement );
		answer.put( "noOfCurrencyDecimals" ,noOfCurrencyDecimals == null ? "" : noOfCurrencyDecimals );
		return answer;
	}

	public String toXml()
	{
		StringBuilder answer = new StringBuilder();
		answer.append( "<item>\n" );
		answer.append( "  <id>" ).append( id == null ? "" : id ).append( "</id>\n" );
		answer.append( "  <userName>" ).append( userName == null ? "" : userName ).append( "</userName>\n" );
		answer.append( "  <userPassword>" ).append( userPassword == null ? "" : userPassword ).append( "</userPassword>\n" );
		answer.append( "  <firstName>" ).append( firstName == null ? "" : firstName ).append( "</firstName>\n" );
		answer.append( "  <lastName>" ).append( lastName == null ? "" : lastName ).append( "</lastName>\n" );
		answer.append( "  <reportsToId>" ).append( reportsToId == null ? "" : reportsToId ).append( "</reportsToId>\n" );
		answer.append( "  <isAdmin>" ).append( isAdmin == null ? "" : isAdmin ).append( "</isAdmin>\n" );
		answer.append( "  <dateEntered>" ).append( dateEntered == null ? "" : dateEntered.getTime() ).append( "</dateEntered>\n" );
		answer.append( "  <dateModified>" ).append( dateModified == null ? "" : dateModified.getTime() ).append( "</dateModified>\n" );
		answer.append( "  <modifiedUserId>" ).append( modifiedUserId == null ? "" : modifiedUserId ).append( "</modifiedUserId>\n" );
		answer.append( "  <position>" ).append( position == null ? "" : position ).append( "</position>\n" );
		answer.append( "  <department>" ).append( department == null ? "" : department ).append( "</department>\n" );
		answer.append( "  <phoneHome>" ).append( phoneHome == null ? "" : phoneHome ).append( "</phoneHome>\n" );
		answer.append( "  <phoneMobile>" ).append( phoneMobile == null ? "" : phoneMobile ).append( "</phoneMobile>\n" );
		answer.append( "  <phoneWork>" ).append( phoneWork == null ? "" : phoneWork ).append( "</phoneWork>\n" );
		answer.append( "  <phoneOther>" ).append( phoneOther == null ? "" : phoneOther ).append( "</phoneOther>\n" );
		answer.append( "  <phoneFax>" ).append( phoneFax == null ? "" : phoneFax ).append( "</phoneFax>\n" );
		answer.append( "  <email1>" ).append( email1 == null ? "" : email1 ).append( "</email1>\n" );
		answer.append( "  <email2>" ).append( email2 == null ? "" : email2 ).append( "</email2>\n" );
		answer.append( "  <status>" ).append( status == null ? "" : status ).append( "</status>\n" );
		answer.append( "  <addressStreet>" ).append( addressStreet == null ? "" : addressStreet ).append( "</addressStreet>\n" );
		answer.append( "  <addressCity>" ).append( addressCity == null ? "" : addressCity ).append( "</addressCity>\n" );
		answer.append( "  <addressState>" ).append( addressState == null ? "" : addressState ).append( "</addressState>\n" );
		answer.append( "  <addressCountry>" ).append( addressCountry == null ? "" : addressCountry ).append( "</addressCountry>\n" );
		answer.append( "  <addressPostalcode>" ).append( addressPostalcode == null ? "" : addressPostalcode ).append( "</addressPostalcode>\n" );
		answer.append( "  <weekstart>" ).append( weekstart == null ? "" : weekstart ).append( "</weekstart>\n" );
		answer.append( "  <dateFormat>" ).append( dateFormat == null ? "" : dateFormat ).append( "</dateFormat>\n" );
		answer.append( "  <hourFormat>" ).append( hourFormat == null ? "" : hourFormat ).append( "</hourFormat>\n" );
		answer.append( "  <startHour>" ).append( startHour == null ? "" : startHour ).append( "</startHour>\n" );
		answer.append( "  <endHour>" ).append( endHour == null ? "" : endHour ).append( "</endHour>\n" );
		answer.append( "  <activityView>" ).append( activityView == null ? "" : activityView ).append( "</activityView>\n" );
		answer.append( "  <leadView>" ).append( leadView == null ? "" : leadView ).append( "</leadView>\n" );
		answer.append( "  <imagename>" ).append( imagename == null ? "" : imagename ).append( "</imagename>\n" );
		answer.append( "  <deleted>" ).append( deleted == null ? "" : deleted ).append( "</deleted>\n" );
		answer.append( "  <confirmPassword>" ).append( confirmPassword == null ? "" : confirmPassword ).append( "</confirmPassword>\n" );
		answer.append( "  <internalMailer>" ).append( internalMailer == null ? "" : internalMailer ).append( "</internalMailer>\n" );
		answer.append( "  <reminderInterval>" ).append( reminderInterval == null ? "" : reminderInterval ).append( "</reminderInterval>\n" );
		answer.append( "  <reminderNextTime>" ).append( reminderNextTime == null ? "" : reminderNextTime ).append( "</reminderNextTime>\n" );
		answer.append( "  <cryptType>" ).append( cryptType == null ? "" : cryptType ).append( "</cryptType>\n" );
		answer.append( "  <accesskey>" ).append( accesskey == null ? "" : accesskey ).append( "</accesskey>\n" );
		answer.append( "  <theme>" ).append( theme == null ? "" : theme ).append( "</theme>\n" );
		answer.append( "  <language>" ).append( language == null ? "" : language ).append( "</language>\n" );
		answer.append( "  <timeZone>" ).append( timeZone == null ? "" : timeZone ).append( "</timeZone>\n" );
		answer.append( "  <currencyGroupingPattern>" ).append( currencyGroupingPattern == null ? "" : currencyGroupingPattern ).append( "</currencyGroupingPattern>\n" );
		answer.append( "  <currencyDecimalSeparator>" ).append( currencyDecimalSeparator == null ? "" : currencyDecimalSeparator ).append( "</currencyDecimalSeparator>\n" );
		answer.append( "  <currencyGroupingSeparator>" ).append( currencyGroupingSeparator == null ? "" : currencyGroupingSeparator ).append( "</currencyGroupingSeparator>\n" );
		answer.append( "  <currencySymbolPlacement>" ).append( currencySymbolPlacement == null ? "" : currencySymbolPlacement ).append( "</currencySymbolPlacement>\n" );
		answer.append( "  <noOfCurrencyDecimals>" ).append( noOfCurrencyDecimals == null ? "" : noOfCurrencyDecimals ).append( "</noOfCurrencyDecimals>\n" );
		answer.append( "</item>\n" );
		return answer.toString();
	}
}
/* Honey v3.1 Test - version:4 - OriginalChecksum:B7bd558f154c3c7b00a6526a647fa2a4a (do not edit this line) */
